package com.mr.game;

import java.util.Scanner;

public class GameDemo {
    public static void main(String[] args) {
        /*Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int a = sc.nextInt();
        System.out.println(sum(a));*/

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int n =sc.nextInt();
        for(int i =1 ;i<+n;i++){
            System.out.println("请输入一个整数：");
            int a =sc.nextInt();
            System.out.println("请输入一个整数：");
            int b =sc.nextInt();
            if(a==0 &&b ==0){

            }else{
                int sum =a+b;
                System.out.println(sum);
            }
        }

    }

    public static int sum(int a) {
        if (a == 1) {
            return 1;
        } else {
            return a + sum(a - 1);
        }

    }
}